package com.nuance.assignment.fileInfo.shared;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Pure client side JavaScriptObject to parse file's Page information from Json
 * string Uses JSNI for implementation.
 * 
 * @author parag
 *
 */

public class FilePageJavaScriptObject extends JavaScriptObject {

	protected FilePageJavaScriptObject() {
	}

	public final native String getSort()/*-{
		return this.sort
	}-*/;

	public final native boolean isAscending()/*-{
		return this.ascending
	}-*/;

	public final native int getStart()/*-{
		return this.start
	}-*/;

	public final native int getSize()/*-{
		return this.size
	}-*/;

	public final native int getTotal()/*-{
		return this.total
	}-*/;

	public final native FileJavaScriptObject[] getContent()/*-{
		return this.content
	}-*/;

}
